package com.wanmait.recruit.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruit.pojo.Company;
import com.wanmait.recruit.pojo.CompanyPosition;
import com.wanmait.recruit.pojo.Person;

import java.util.List;

public interface CompanyPositionService extends CommonService<CompanyPosition> {
    void deleteByPersonId(Integer id);
    PageInfo<CompanyPosition> findByCompany(Company company);
    List<CompanyPosition> findByHr(Person person, Company company);
    List<CompanyPosition> findByAdmin(Company company);
    void updatePosition(CompanyPosition companyPosition);
    void updateEnable(Integer id);
    CompanyPosition findById(Integer id);
    List<CompanyPosition> findAll();
    PageInfo<CompanyPosition> searchRes(int pageNum, int pageSize,CompanyPosition companyPosition);
    PageInfo<CompanyPosition> searchByCompanyOrPosition(String positionOrCompanyName,String selectedPosition);

    PageInfo<CompanyPosition> searchBySomeId(Integer industryId, Integer typeId, Integer positionId, Integer pageNum);

    PageInfo<CompanyPosition> searchByIndustryId(Integer industryId, Integer pageNum);

    PageInfo<CompanyPosition> searchByTypeId(Integer typeId, Integer pageNum);

    PageInfo<CompanyPosition> searchByPositionId(Integer positionId, Integer pageNum);

}
